#!/bin/bash

kill -9 $(ps -ef|grep multirotor_keyboard_control.py|gawk '$0 !~/grep/ {print $2}' |tr -s '\n' ' ')
kill -9 $(ps -ef|grep get_local_pose.py|gawk '$0 !~/grep/ {print $2}' |tr -s '\n' ' ')
kill -9 $(ps -ef|grep multirotor_communication.py|gawk '$0 !~/grep/ {print $2}' |tr -s '\n' ' ')
kill -9 $(ps -ef|grep ros|gawk '$0 !~/grep/ {print $2}' |tr -s '\n' ' ')
killall -9 gzserver gzclient


